package com.baosight.risk.mapper.riim;

import com.baosight.risk.base.mapper.BaseMapper;
import com.baosight.risk.service.riim.entity.RiimRiskEvaluation;
import com.baosight.risk.service.riim.entity.RiimRiskGoalDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RiimRiskGoalDetailMapper extends BaseMapper<RiimRiskGoalDetail> {

    List<RiimRiskGoalDetail> selectByImportGuidAndGoalId(@Param("importGuid") String importGuid,
                                                         @Param("goalId") String goalId);

    Integer deleteByImportGuidAndGoalId(@Param("importGuid") String importGuid, @Param("goalId") String goalId);

    List<String> selectGoalDetail(@Param("importGuid") String importGuid,
                                  @Param("targetNo") String targetNo,
                                  @Param("compCode") String compCode);

    List<RiimRiskGoalDetail> selectByType(@Param("goalId") String goalId, @Param("typeFlag") String typeFlag);
}